package com.zp.drug.dubbo;

import com.zp.business.api.prescription.vo.PrescriptionApplyVo;
import com.zp.drug.api.RemoteDrugStockService;
import com.zp.drug.service.IDrugStockService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;

/**
 * @program: zp-backstage
 * @ClassName RemoteClinicPatientImpl
 * @description: 门诊就诊记录保存
 * @author: zhangpeng
 * @create: 2023-12-26 16:20
 * @Version 1.0
 **/
@RequiredArgsConstructor
//@Service
@DubboService
public class RemoteDrugStockServiceImpl implements RemoteDrugStockService {

    private final IDrugStockService drugStockService;


    /**
     * 确认发放
     *
     * @param prescriptionApplyVos
     * @return
     */
    @Override
    public Boolean grantInfoOk(List<PrescriptionApplyVo> prescriptionApplyVos) {
        return drugStockService.grantInfoOk(prescriptionApplyVos);
    }

    /**
     * 确认退药
     *
     * @param prescriptionApplyVo
     * @return
     */
    @Override
    public Boolean issuedGrantInfoOk(PrescriptionApplyVo prescriptionApplyVo) {
        return drugStockService.issuedGrantInfoOk(prescriptionApplyVo);
    }
}
